<?php
// +----------------------------------------------------------------------
// | hkcms 数据库备份 插件
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2021 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: HkCms team <admin@hkcms.cn>
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace addons\database;

use think\Addons;

class Database extends Addons
{

    public function install()
    {
        return true;
    }

    public function uninstall()
    {
        return true;
    }

    public function enable()
    {
        // 菜单数组文件路径
        $menu = include $this->addon_path.'data'.DIRECTORY_SEPARATOR.'m.php';
        // 参数一给路径，参数二给当前插件的标识
        create_menu($menu,$this->getName());

        return true;
    }

}